#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "options.h"
#include "engine.h"

int main(int argc, char *argv[], char *envp[])
{
    options_parse(argc, argv);
    printf("uid=%d\n", getuid());
    printf("pid=%d\n", getpid());
    if(engine_init() == -1){
        return -1;
    }
    if(engine_loop() == -1){
        return -1;
    }
    if(engine_destory() == -1){
        return -1;
    }
    return 0;
}
